const initState = {
    racketX: 500
}
export default function reducer (state=initState, action ) {
    switch(action.type) {
        case 'rackMove':
            const racketX = action.racketX
            return {
                racketX
        }
        default:
            return state
    }
}